package com.yc.upload.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author navy
 * @company 源辰信息
 * @date 2024/9/10
 * @email haijunzhou@hnit.edu.cn
 *
 * upload:
 *    enable: true
 *    mappers:  list<object>
 *      - type: image
 *        diskPath: c:/a/
 *        webPath: /upload/image/
 *      - type: doc
 *        diskPath: d:/b/
 *        webPath: /upload/doc/
 */
@Data
@Component
@ConfigurationProperties(prefix = "upload")
public class UploadProperties {
    boolean enable;
    List<UploadMapper> mappers;
}
